package com.example.demo.pojo.Order;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class PutOrders {

    @Id
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;

    @ExcelProperty("订单代码")
    private String orderCode;

    @ExcelIgnore
    private int orderId;
    @ExcelIgnore
    private int userId;


    @ExcelProperty("股票代码")
    private String stockCode;

    @ExcelProperty("订单名称")
    private String orderName;


    @ExcelProperty("委托类型")
    private String orderType;


    @ExcelProperty("委托价格")
    private BigDecimal price;


    @ExcelProperty("委托数量")
    private int quantity;


    @ExcelProperty("未成交数量")
    private int unexecutedQuantity;


    @ExcelProperty("委托状态")
    private String orderStatus;


    @ExcelProperty("委托时间")
    private Date time;
}
